#ifndef _CONSOLE_H
#define _CONSOLE_H

#include <type.h>
#include <ds/ring_buffer.h>

typedef struct console {
    rbuffer_t in;
    rbuffer_t out;
    u32 windos_start;
    u32 lines;
} console_t;

void console_init();

void console_register();

void console_flush();

void console_write_str(char* s);

void console_write_char(char c);

void console_scroll_up();

void console_scroll_down();

void console_write(console_t* con, char* data, size_t len);

#endif /* _CONSOLE_H */